<!--
描述：主观题信息-查看组件
开发人：hqj
开发日期：2018年10月12日
-->
<template lang="pug">
    kalix-dialog.user-add(bizKey="subject" ref="kalixBizDialog" v-bind:formModel.sync="formModel" isView)
        div.el-form(slot="dialogFormSlot")
            el-form-item(label="主观题类型" prop="subType" v-bind:label-width="labelWidth")
                kalix-dict-select(v-model="formModel.subType" appName="enrolment" dictType="主观题类型" disabled)
            el-form-item(label="年份" prop="year" v-bind:label-width="labelWidth")
                kalix-date-picker(v-model="formModel.year" type="year" readonly)
            el-form-item(label="题干" prop="stem" v-bind:label-width="labelWidth")
                el-input(v-model="formModel.stem" type="textarea" readonly)
            el-form-item(label="答题要求" prop="answerConstraint" v-bind:label-width="labelWidth")
                el-input(v-model="formModel.answerConstraint" type="textarea" readonly)
            el-form-item(label="试题解析" prop="analysis" v-bind:label-width="labelWidth")
                el-input(v-model="formModel.analysis" type="textarea" readonly)
            el-form-item(label="评分标准" prop="scoreStandard" v-bind:label-width="labelWidth")
                el-input(v-model="formModel.scoreStandard" type="textarea" readonly)
</template>

<script type="text/ecmascript-6">
    import FormModel from './model'

    export default {
        name: 'SubjectView',
        data() {
            return {
                formModel: Object.assign({}, FormModel),
                labelWidth: '120px'
            }
        },
        methods: {}
    }
</script>
